package com.chengdu.his.sys.service.impl;

import com.chengdu.his.pojo.EmpsRoles;
import com.chengdu.his.sys.mapper.EmpRoleMapper;
import com.chengdu.his.sys.service.EmpRoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class EmpRoleServiceImpl implements EmpRoleService {

    @Resource
    private EmpRoleMapper empRoleMapper;

    @Override
    public int add(EmpsRoles empsRoles) throws Exception {
        return empRoleMapper.add(empsRoles);
    }

    @Override
    public EmpsRoles findRoleIdByEid(long eid) throws Exception {
        return empRoleMapper.findRoleIdByEid(eid);
    }
}
